package com.example.springcloudmodelserver.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class ModelTest {
    @NotBlank(message = "modelname不能为空")
    private String modelname;
    @NotBlank(message = "sku不能为空")
    private String sku;
    @NotBlank(message = "version不能为空")
    private String version;
//    @NotBlank(message = "updatetime不能为空")
    @Future(message = "更新时间错误")
//    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date updatetime;
    @NotBlank(message = "developer不能为空")
    private String developer;
    @NotBlank(message = "category不能为空")
    private String category;
    @NotBlank(message = "feature不能为空")
    private String feature;
    @NotBlank(message = "remark不能为空")
    private String remark;
    @NotBlank(message = "language不能为空")
    private String language;
    @NotBlank(message = "form不能为空")
    private String form;
    @NotBlank(message = "environment不能为空")
    private String environment;
    @NotBlank(message = "example不能为空")
    private String example;
    @NotBlank(message = "testmodel不能为空")
    private String testmodel;

    public void setExample(String example) {
        this.example = example;
    }

    public String getExample() {
        return example;
    }

    public void setEnvironment(String environment) {
        this.environment = environment;
    }

    public String getEnvironment() {
        return environment;
    }

    public void setForm(String form) {
        this.form = form;
    }

    public String getForm() {
        return form;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getLanguage() {
        return language;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return remark;
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    public String getFeature() {
        return feature;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategory() {
        return category;
    }

    public void setDeveloper(String developer) {
        this.developer = developer;
    }

    public String getDeveloper() {
        return developer;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getVersion() {
        return version;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getSku() {
        return sku;
    }

    public void setModelname(String modelname) {
        this.modelname = modelname;
    }

    public String getModelname() {
        return modelname;
    }

    public String getTestmodel() {
        return testmodel;
    }

    public void setTestmodel(String testmodel) {
        this.testmodel = testmodel;
    }
}
